package cn.wolfcode.trip.api.controller;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import cn.wolfcode.trip.base.service.ITravelCommendService;
import cn.wolfcode.trip.base.util.JsonResult;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright: Copyright (c) 2019 Super520
 * 描述：游记推荐控制器
 *
 * @package: cn.wolfcode.trip.api.controller
 * @author: Patch
 * @date: 2019/5/24 12:17
 * 总结:
 */
@RestController
@RequestMapping("commends")
public class TravelCommendController {
    @Autowired
    private ITravelCommendService travelCommendService;

    /**
     * 获取推荐数据接口
     */
    @GetMapping
    public PageInfo list(TravelCommendQueryObject qo) {
        return travelCommendService.queryForApp(qo);
    }


}
